package yt.kpool.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.king.base.adapter.ViewHolderAdapter;
import com.king.base.adapter.holder.ViewHolder;

import java.util.List;

import yt.kpool.R;
import yt.kpool.bean.MinerGroupBean;
import yt.kpool.util.Util;
import yt.kpool.view.dialog.AddGroupDialog;
import yt.kpool.view.dialog.DelectGroupDialog;


/**
 * 移动矿工分组选择适配器
 * Created by Administrator on 2017/7/17.
 */

public class MoveMinerGroupListviewAdapter extends ViewHolderAdapter<MinerGroupBean.DataBean> {

    private String CurrencyID;
    private String ChildAccountID;
    private OnClickItemListener onClickItemListener;

    public MoveMinerGroupListviewAdapter(Context context, String CurrencyID, String ChildAccountID, List<MinerGroupBean.DataBean> listData, OnClickItemListener onClickItemListener) {
        super(context, listData);
        this.CurrencyID=CurrencyID;
        this.ChildAccountID=ChildAccountID;
        this.onClickItemListener=onClickItemListener;
    }

    @Override
    public View buildConvertView(LayoutInflater layoutInflater, MinerGroupBean.DataBean dataBean, int position) {
        return layoutInflater.inflate(R.layout.item_moveminergroup_listview,null);
    }

    @Override
    public void bindViewDatas(ViewHolder holder, final MinerGroupBean.DataBean dataBean, int position) {
        holder.setText(R.id.tv_content,dataBean.getName());




    }


    /**
     * 点击回调
     */
    public interface OnClickItemListener {
        public void clickItem();

    }
}
